//
//  HOStaticDataMgr.h
//  微度报修
//
//  Created by foguo-mac-1 on 6/21/16.
//  Copyright © 2016 WeiDu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HOUserInfoEntity.h"
#import "HOHopeHanderEntity.h"
#import "HOAreaEntity.h"
#import "HOFaultCategoryEntity.h"
#import "HODepartmentEntity.h"
@interface HOStaticDataMgr : NSObject


@property(nonatomic, retain)NSMutableArray *faultCategoryList;
@property(nonatomic, retain)NSMutableArray *departmentList;

@property(nonatomic, retain)NSMutableArray *hopeHanderList;
@property(nonatomic, retain)NSMutableArray *faultLocationList;
@property(nonatomic, retain)NSMutableArray *buildingList;
@property(nonatomic, assign)BOOL needGotoMyReport;
@property(nonatomic, assign)BOOL needGotoMyMessage;
@property(nonatomic, assign)BOOL openAppFromPushMessage;

+ (HOStaticDataMgr *)sharedInstance;
- (HOUserInfoEntity *)getUserInfo;
- (BOOL)isDirectorUser;
- (void)didReceiveFaultCategoryList:(NSArray *)array;
- (void)didReceiveHopeHandlerList:(NSArray *)array;
- (void)didReceiveDepartmentList:(NSArray *)array;
- (void)didReceiveBuildingList:(NSArray *)array;
- (void)didReceiveFaultLocationList:(NSArray *)array;

- (NSMutableArray *)faultLocationList;

- (NSArray *)getAreaListWithBuildingName:(NSString *)buildingName;
- (HOHopeHanderEntity *)getHopeHandlerEntityWithId:(int)handlerId;
- (HOFaultCategoryEntity *)getFaultCategoryEntityWithId:(int)faultId;
- (HODepartmentEntity *)getDepartmentEntityWithId:(int)departmentId;
- (void)cleanup;
- (HOAreaEntity *)getAreaEntityWithId:(int)areaId;
- (int)getDirectorId;
- (NSString *)getCompanyId;
- (NSMutableArray *)getFirstTypeArrayWithDepartmentId:(int)deptId;
- (NSMutableArray *)getGategoryListWithDepartmentId:(int)departmentId;
@end
